﻿//
// Copyright (c) 2024 BPer
//
#ifndef __BPerWinVideoCaptureHandle__
#define __BPerWinVideoCaptureHandle__
#include <bper_config.h>
#if BPer_OS_WIN
#include <bperutil/buffer/BPerVideoBuffer.h>
#include <bperutil/BPerAvInfoType.h>
#include "qedit.h"
#include "../BPerVideoCaptureHandle.h"
class BPerWinVideoCaptureHandle: public ISampleGrabberCB,
		public BPerVideoCaptureHandle {
public:
    BPerWinVideoCaptureHandle(BPerVideoInfo *pcontext);
	virtual ~BPerWinVideoCaptureHandle(void);

	STDMETHODIMP_(ULONG) AddRef();
	STDMETHODIMP_(ULONG) Release();
	STDMETHODIMP QueryInterface(REFIID riid, void **ppvObject);
	STDMETHODIMP SampleCB(double Time, IMediaSample *pSample);
	STDMETHODIMP BufferCB(double Time, BYTE *pBuffer, long BufferLen);
private:

};
#endif
#endif
